home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update40.zoo / lib / diffc < prev    next >
Encoding:
Text File  |  1994-03-29  |  37.3 KB  |  1,413 lines

  1. ===================================================================
  2. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/Changelo,v
  3. retrieving revision 1.105
  4. diff -c -r1.105 Changelo
  5. *** 1.105    1994/02/02 17:04:41
  6. --- Changelo    1994/03/29 22:12:39
  7. ***************
  8. *** 4639,4641 ****
  9. --- 4639,4945 ----
  10.       -- adjust names for op_new etc
  11.   
  12.   ---------------------------- Patchlevel 97 ---------------------------
  13. + == sync with mntlib 43
  14. + ***** libgcc2.c
  15. + ----------------------------
  16. + revision 42.3    
  17. + date: 1994/02/10 11:38:42;  author: entropy;  state: Exp;  lines: +1 -1
  18. + Only use XFmode extended real floating point if XFLOAT_ENABLE is defined.
  19. + ----------------------------
  20. + revision 42.2
  21. + date: 1994/01/28 16:30:08;  author: schwab;  state: Exp;  lines: +1 -1
  22. + Don't try to use extended float mode (XFmode) with gcc before version 2.4.
  23. + Actually, this will also exclude gcc 2.4, since __GNUC_MINOR__ was
  24. + introduced just with gcc 2.5.
  25. + =============================================================================
  26. + ***** longlong.h
  27. + ----------------------------
  28. + revision 42.2    
  29. + date: 1994/01/28 16:30:30;  author: schwab;  state: Exp;  lines: +24 -25
  30. + Revert the last change, we don't need a register prefix.
  31. + =============================================================================
  32. + ***** include/assert.h
  33. + ----------------------------
  34. + revision 42.2    
  35. + date: 1994/02/12 00:01:04;  author: entropy;  state: Exp;  lines: +14 -14
  36. + Add back old statement-based assert macro, but now called __assert().
  37. + =============================================================================
  38. + ***** include/osbind.h
  39. + ----------------------------
  40. + revision 42.2    
  41. + date: 1994/02/10 08:05:26;  author: entropy;  state: Exp;  lines: +2 -2
  42. + Relax constraints from "r" to "g" on trap_14_wllwwwwwlw (used
  43. + by Flopfmt()).
  44. + =============================================================================
  45. + ==end sync
  46. + ==sync with mntlib 44
  47. + ***** a64l.c
  48. + ----------------------------
  49. + revision 43.2    
  50. + date: 1994/02/28 13:27:40;  author: entropy;  state: Exp;  lines: +0 -49
  51. + broke out functions
  52. + =============================================================================
  53. + ***** abort.c
  54. + ----------------------------
  55. + revision 43.2    
  56. + date: 1994/02/27 13:16:42;  author: entropy;  state: Exp;  lines: +9 -7
  57. + A possibly more ANSI/POSIX compliant abort().
  58. + =============================================================================
  59. + ***** abs.c
  60. + ----------------------------
  61. + revision 43.2    
  62. + date: 1994/02/28 13:33:08;  author: entropy;  state: Exp;  lines: +4 -9
  63. + broke out functions
  64. + =============================================================================
  65. + ***** atoi.c
  66. + ----------------------------
  67. + revision 43.2    
  68. + date: 1994/02/28 13:33:32;  author: entropy;  state: Exp;
  69. + NEW file, broken out from atol.c
  70. + =============================================================================
  71. + ***** atol.c
  72. + ----------------------------
  73. + revision 43.2    
  74. + date: 1994/02/28 13:34:10;  author: entropy;  state: Exp;  lines: +2 -8
  75. + broke out functions
  76. + =============================================================================
  77. + ***** chmod.c
  78. + ----------------------------
  79. + revision 43.2    
  80. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +2 -24
  81. + broke out functions
  82. + =============================================================================
  83. + ***** chown.c
  84. + ----------------------------
  85. + revision 43.2    
  86. + date: 1994/02/28 18:37:20;  author: entropy;  state: Exp;
  87. + NEW file, broken out from chmod.c
  88. + =============================================================================
  89. + ***** div.c
  90. + ----------------------------
  91. + revision 43.2    
  92. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +3 -32
  93. + broke out functions
  94. + =============================================================================
  95. + ***** fgetpos.c
  96. + ----------------------------
  97. + revision 43.2    
  98. + date: 1994/02/28 13:50:12;  author: entropy;  state: Exp;
  99. + NEW file, broken out from fsetpos.c
  100. + =============================================================================
  101. + ***** fopen.c
  102. + ----------------------------
  103. + revision 43.2    
  104. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +20 -146
  105. + broke out functions
  106. + =============================================================================
  107. + ***** fopen_i.c
  108. + ----------------------------
  109. + revision 43.2    
  110. + date: 1994/02/28 13:46:12;  author: entropy;  state: Exp;
  111. + NEW file, broken out from fopen.c
  112. + =============================================================================
  113. + ***** fputs.c
  114. + ----------------------------
  115. + revision 43.2    
  116. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +15 -26
  117. + broke out functions
  118. + =============================================================================
  119. + ***** freopen.c
  120. + ----------------------------
  121. + revision 43.2    
  122. + date: 1994/02/28 13:46:12;  author: entropy;  state: Exp;
  123. + NEW file, broken out from fopen.c
  124. + =============================================================================
  125. + ***** fseek.c
  126. + ----------------------------
  127. + revision 43.2    
  128. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +5 -41
  129. + broke out functions
  130. + =============================================================================
  131. + ***** fsetpos.c
  132. + ----------------------------
  133. + revision 43.2    
  134. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +17 -33
  135. + broke out functions
  136. + =============================================================================
  137. + ***** ftell.c
  138. + ----------------------------
  139. + revision 43.2    
  140. + date: 1994/02/28 13:49:16;  author: entropy;  state: Exp;
  141. + NEW file, broken out from fseek.c
  142. + =============================================================================
  143. + ***** getegid.c
  144. + ----------------------------
  145. + revision 43.2    
  146. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  147. + NEW file, broken out from getuid.c
  148. + =============================================================================
  149. + ***** geteuid.c
  150. + ----------------------------
  151. + revision 43.2    
  152. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  153. + NEW file, broken out from getuid.c
  154. + =============================================================================
  155. + ***** getgid.c
  156. + ----------------------------
  157. + revision 43.2    
  158. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  159. + NEW file, broken out from getuid.c
  160. + =============================================================================
  161. + ***** getpid.c
  162. + ----------------------------
  163. + revision 43.2    
  164. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +5 -2
  165. + broke out functions
  166. + =============================================================================
  167. + ***** getppid.c
  168. + ----------------------------
  169. + revision 43.2    
  170. + date: 1994/02/28 13:50:12;  author: entropy;  state: Exp;
  171. + NEW file, broken out from getpid.c
  172. + =============================================================================
  173. + ***** getuid.c
  174. + ----------------------------
  175. + revision 43.2    
  176. + date: 1994/02/28 13:36:30;  author: entropy;  state: Exp;  lines: +5 -63
  177. + broke out functions
  178. + =============================================================================
  179. + ***** l64a.c
  180. + ----------------------------
  181. + revision 43.2    
  182. + date: 1994/02/28 13:27:04;  author: entropy;  state: Exp;
  183. + NEW file, broke out from a64l.c.
  184. + =============================================================================
  185. + ***** labs.c
  186. + ----------------------------
  187. + revision 43.2    
  188. + date: 1994/02/28 13:28:50;  author: entropy;  state: Exp;
  189. + NEW file, formerly in abs.c
  190. + =============================================================================
  191. + ***** ldiv.c
  192. + ----------------------------
  193. + revision 43.2    
  194. + date: 1994/02/28 13:42:52;  author: entropy;  state: Exp;
  195. + NEW file, broken out from div.c
  196. + =============================================================================
  197. + ***** lib.h
  198. + ----------------------------
  199. + revision 43.3    
  200. + date: 1994/02/28 14:03:04;  author: entropy;  state: Exp;  lines: +12 -0
  201. + add some prototypes
  202. + ----------------------------
  203. + revision 43.2
  204. + date: 1994/02/27 11:51:30;  author: entropy;  state: Exp;  lines: +1 -0
  205. + add _enoent() prototype.
  206. + =============================================================================
  207. + ***** puts.c
  208. + ----------------------------
  209. + revision 43.2    
  210. + date: 1994/02/28 13:47:38;  author: entropy;  state: Exp;
  211. + NEW file, broken out from fputs.c
  212. + =============================================================================
  213. + ***** regexp.c
  214. + ----------------------------
  215. + revision 43.2    
  216. + date: 1994/02/24 16:41:16;  author: schwab;  state: Exp;  lines: +1 -0
  217. + regcomp fails to compile "(a+|b)*" (from libtest/tregex.c).  The bug
  218. + is an uninitialized byte in reginsert.
  219. + =============================================================================
  220. + ***** rewind.c
  221. + ----------------------------
  222. + revision 43.2    
  223. + date: 1994/02/28 13:49:16;  author: entropy;  state: Exp;
  224. + NEW file, broken out from fseek.c
  225. + =============================================================================
  226. + ***** setegid.c
  227. + ----------------------------
  228. + revision 43.2    
  229. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  230. + NEW file, broken out from getuid.c
  231. + =============================================================================
  232. + ***** seteuid.c
  233. + ----------------------------
  234. + revision 43.2    
  235. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  236. + NEW file, broken out from getuid.c
  237. + =============================================================================
  238. + ***** setgid.c
  239. + ----------------------------
  240. + revision 43.2    
  241. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  242. + NEW file, broken out from getuid.c
  243. + =============================================================================
  244. + ***** setregid.c
  245. + ----------------------------
  246. + revision 43.2    
  247. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  248. + NEW file, broken out from getuid.c
  249. + =============================================================================
  250. + ***** setreuid.c
  251. + ----------------------------
  252. + revision 43.2    
  253. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  254. + NEW file, broken out from getuid.c
  255. + =============================================================================
  256. + ***** setuid.c
  257. + ----------------------------
  258. + revision 43.2    
  259. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  260. + NEW file, broken out from getuid.c
  261. + =============================================================================
  262. + ***** uidgid.c
  263. + ----------------------------
  264. + revision 43.2    
  265. + date: 1994/02/28 13:52:34;  author: entropy;  state: Exp;
  266. + NEW file, broken out from getuid.c
  267. + =============================================================================
  268. + ***** include/PatchLev.h
  269. + ----------------------------
  270. + revision 43.2    
  271. + date: 1994/02/15 20:33:52;  author: entropy;  state: Exp;  lines: +1 -1
  272. + -
  273. + =============================================================================
  274. + ***** include/ioctl.h
  275. + ----------------------------
  276. + revision 43.5    
  277. + date: 1994/02/27 09:42:40;  author: entropy;  state: Exp;  lines: +13 -8
  278. + Add some more TIOCM_* definitions
  279. + ----------------------------
  280. + revision 43.4
  281. + date: 1994/02/21 19:31:36;  author: entropy;  state: Exp;  lines: +29 -0
  282. + Catch up with MiNT's file.h:  Add cursor ioctl's and some missing
  283. + process ioctl's.
  284. + ----------------------------
  285. + revision 43.3
  286. + date: 1994/02/21 19:20:24;  author: entropy;  state: Exp;  lines: +9 -0
  287. + Add TIOCMGET (faked) and related bitmasks.
  288. + ----------------------------
  289. + revision 43.2
  290. + date: 1994/02/19 14:25:04;  author: entropy;  state: Exp;  lines: +11 -9
  291. + Added TIOCSDTR, TIOCCDTR and cleaned up a bit.
  292. + =============================================================================
  293. + ***** include/mintbind.h
  294. + ----------------------------
  295. + revision 43.2    
  296. + date: 1994/02/26 08:45:42;  author: entropy;  state: Exp;  lines: +8 -0
  297. + Add new MiNT system calls: Tmalarm(), Psigintr(), Suptime().
  298. + All are unofficial and subject to change.
  299. + =============================================================================
  300. + ***** include/ostruct.h
  301. + ----------------------------
  302. + revision 43.2    
  303. + date: 1994/02/22 17:47:58;  author: entropy;  state: Exp;  lines: +4 -0
  304. + Complete the _PARAM structure used with Initmous().
  305. + =============================================================================
  306. + New files: atoi.c chown.c fgetpos.c fopen_i.c freopen.c ftell.c getegid.c
  307. + geteuid.c getgid.c getppid.c l64a.c labs.c ldiv.c puts.c rewind.c setegid.c
  308. + seteuid.c setgid.c setregid.c setreuid.c setuid.c uidgid.c
  309. + == end sync
  310. + ---------------------------- Patchlevel 98 ---------------------------
  311. ===================================================================
  312. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/PatchLev.h,v
  313. retrieving revision 1.73
  314. diff -c -r1.73 PatchLev.h
  315. *** 1.73    1994/02/02 17:04:45
  316. --- PatchLev.h    1994/03/29 22:12:45
  317. ***************
  318. *** 1,5 ****
  319.   
  320. ! #define    PatchLevel "97"
  321.   
  322.   /*
  323.    *
  324. --- 1,5 ----
  325.   
  326. ! #define    PatchLevel "98"
  327.   
  328.   /*
  329.    *
  330. ===================================================================
  331. RCS file: /net/acae127/home/bammi/etc/src/master/atari/lib/mincl,v
  332. retrieving revision 1.35
  333. diff -c -r1.35 mincl
  334. *** 1.35    1994/02/02 17:04:50
  335. --- mincl    1994/03/18 17:24:30
  336. ***************
  337. *** 21,45 ****
  338.       bblink.o defmode.o
  339.   #
  340.   # ANSI stuff + support
  341. ! ANSI =  atol.o atof.o abort.o bsearch.o \
  342.       calloc.o clock.o ctime.o ctype.o difftime.o \
  343. !     fopen.o fclose.o fdopen.o fflush.o fgetc.o fgets.o \
  344. !     fputc.o fputs.o fread.o fwrite.o fseek.o fsetpos.o \
  345. !     fprintf.o vfprintf.o printf.o vprintf.o eprintf.o sprintf.o \
  346.       fscanf.o scanf.o sscanf.o \
  347.       getenv.o putenv.o gets.o getw.o localtim.o \
  348.       malloc.o qsort.o raise.o rand.o realloc.o \
  349.       setbuf.o setvbuf.o \
  350.       setlocal.o strftime.o strtol.o system.o \
  351.       tmpnam.o tmpfile.o \
  352. !     ltoa.o main.o doprnt.o div.o \
  353.       strtoul.o fungetc.o filbuf.o getbuf.o toxxx.o \
  354. !     wcmb.o wcscat.o wcscmp.o wcscpy.o wcslen.o wnull.o
  355.   #
  356.   # other portable stuff
  357.   PORT =  a64l.o alphasor.o abs.o buffindf.o catch.o dirent.o findfile.o ftw.o \
  358. !     getpw.o getlogin.o getopt.o getpass.o ident.o mktemp.o putpwent.o \
  359.           scandir.o strlwr.o strrev.o strupr.o regexp.o regsup.o textio.o \
  360.           random.o obstack.o il.o ic.o iw.o ig.o ip.o frwbin.o ctermid.o \
  361.       cuserid.o ffs.o nlist.o
  362. --- 21,45 ----
  363.       bblink.o defmode.o
  364.   #
  365.   # ANSI stuff + support
  366. ! ANSI =  atoi.c atol.o atof.o abort.o bsearch.o \
  367.       calloc.o clock.o ctime.o ctype.o difftime.o \
  368. !     fopen.o fopen_i.o fclose.o fdopen.o fflush.o fgetc.o fgetpos.o fgets.o \
  369. !     fputc.o fputs.o fread.o freopen.o fwrite.o fseek.o fsetpos.o \
  370. !     fprintf.o ftell.o vfprintf.o printf.o vprintf.o eprintf.o sprintf.o \
  371.       fscanf.o scanf.o sscanf.o \
  372.       getenv.o putenv.o gets.o getw.o localtim.o \
  373.       malloc.o qsort.o raise.o rand.o realloc.o \
  374.       setbuf.o setvbuf.o \
  375.       setlocal.o strftime.o strtol.o system.o \
  376.       tmpnam.o tmpfile.o \
  377. !     ltoa.o main.o doprnt.o div.o ldiv.o \
  378.       strtoul.o fungetc.o filbuf.o getbuf.o toxxx.o \
  379. !     wcmb.o wcscat.o wcscmp.o wcscpy.o wcslen.o wnull.o \
  380. !     puts.o rewind.o
  381.   #
  382.   # other portable stuff
  383.   PORT =  a64l.o alphasor.o abs.o buffindf.o catch.o dirent.o findfile.o ftw.o \
  384. !     getpw.o getlogin.o getopt.o getpass.o ident.o labs.o l64a.o mktemp.o putpwent.o \
  385.           scandir.o strlwr.o strrev.o strupr.o regexp.o regsup.o textio.o \
  386.           random.o obstack.o il.o ic.o iw.o ig.o ip.o frwbin.o ctermid.o \
  387.       cuserid.o ffs.o nlist.o
  388. ***************
  389. *** 54,67 ****
  390.   #
  391.   # stuff to fake unix system calls 
  392.   
  393. ! UNIX=   access.o chdir.o chmod.o close.o console.o device.o dup.o exec.o fcntl.o \
  394.       fhandle.o fork.o getcwd.o getpage.o getpid.o getuid.o grp.o ioctl.o isatty.o \
  395.       link.o lseek.o mkdir.o mkfifo.o null.o open.o perror.o pgrp.o pipe.o popen.o psignal.o \
  396.       read.o rename.o rmdir.o \
  397.       sbrk.o sgtty.o signal.o siglist.o sleep.o spawnve.o spawnvp.o stat.o \
  398.       symdir.o symlink.o tchars.o time.o timeoday.o times.o \
  399. !     unlink.o unx2dos.o utime.o vfork.o write.o
  400.   #
  401.   # stuff for integer only scan/printf
  402.   
  403. --- 54,68 ----
  404.   #
  405.   # stuff to fake unix system calls 
  406.   
  407. ! UNIX=   access.o chdir.o chmod.o chown.c close.o console.o device.o dup.o exec.o fcntl.o \
  408.       fhandle.o fork.o getcwd.o getpage.o getpid.o getuid.o grp.o ioctl.o isatty.o \
  409.       link.o lseek.o mkdir.o mkfifo.o null.o open.o perror.o pgrp.o pipe.o popen.o psignal.o \
  410.       read.o rename.o rmdir.o \
  411.       sbrk.o sgtty.o signal.o siglist.o sleep.o spawnve.o spawnvp.o stat.o \
  412.       symdir.o symlink.o tchars.o time.o timeoday.o times.o \
  413. !     unlink.o unx2dos.o utime.o vfork.o write.o \
  414. !     getegid.o geteuid.o getgid.o getppid.o  setegid.o seteuid.o \
  415. !     setgid.o setregid.o setreuid.o setuid.o uidgid.o
  416.   #
  417.   # stuff for integer only scan/printf
  418.   
  419. ===================================================================
  420. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/a64l.c,v
  421. retrieving revision 1.2
  422. diff -c -r1.2 a64l.c
  423. *** 1.2    1993/07/10 16:36:33
  424. --- a64l.c    1994/03/17 21:23:59
  425. ***************
  426. *** 66,72 ****
  427.   
  428.   /* Local function prototypes */
  429.   static int a64i __PROTO((char c));  /* base-64 char to int, -1 on error */
  430. - static char i64a __PROTO((int i));  /* integer to base-64 char, 0x7F on error */
  431.   
  432.   /* base-64 char to int, -1 on error */
  433.   static int a64i(c)
  434. --- 66,71 ----
  435. ***************
  436. *** 112,162 ****
  437.     return(retval);
  438.   } /* End of a64l() */
  439.   
  440. - /* integer to base-64 char, 0x7F on error */
  441. - static char i64a(i)
  442. -   int i;
  443. - {
  444. -   char retval = (char)i;
  445. -   
  446. -   if ((i < 0) || (i > 63))
  447. -   {
  448. -     errno = EBADARG;
  449. -     return(0x7F);
  450. -   }
  451. -   retval += '.';
  452. -   if (i > 11)
  453. -     retval += 'A' - '9' - 1;
  454. -   if (i > 37)
  455. -     retval += 'a' - 'Z' - 1;
  456. -   return(retval);
  457. - } /* End of i64a() */
  458. - /* long to base-64 string */
  459. - char *l64a(l)
  460. -   long l;
  461. - {
  462. -   static char retval[7];
  463. -   char buffer[7], *ptr1 = buffer, *ptr2 = retval;
  464. -   int counter = 0;
  465. -   if (l < 0)
  466. -   {
  467. -     errno = EBADARG;
  468. -     return("");
  469. -   }
  470. -   if (l == 0)
  471. -     return("");
  472. -   while ((counter++ < 6) && (l > 0))
  473. -   {
  474. -     char val;
  475. -     
  476. -     if ((val = i64a((char)(l & 0x3F))) == 0x7F)
  477. -       return(""); /* errno was set by i64a() */
  478. -     *ptr1++ = val;
  479. -     l >>= 6;
  480. -   }
  481. -   while (ptr1 > buffer)
  482. -     *ptr2++ = *(--ptr1);
  483. -   *ptr2 = 0x00;
  484. -   return(retval);
  485. - } /* End of l64a() */
  486. --- 111,113 ----
  487. ===================================================================
  488. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/abort.c,v
  489. retrieving revision 1.7
  490. diff -c -r1.7 abort.c
  491. *** 1.7    1993/11/17 17:15:45
  492. --- abort.c    1994/03/17 21:24:00
  493. ***************
  494. *** 1,4 ****
  495. ! /* ERS */
  496.   
  497.   #include <signal.h>
  498.   #include <stdlib.h>
  499. --- 1,4 ----
  500. ! /* by ERS, modified by entropy */
  501.   
  502.   #include <signal.h>
  503.   #include <stdlib.h>
  504. ***************
  505. *** 17,31 ****
  506.   {
  507.   #ifdef __MINT__
  508.       if (__mint)
  509.           (void) Pkill(Pgetpid(), SIGABRT);
  510. ! #if 0
  511. !     /* Do not do this because it violates POSIX (raise() and
  512. !        kill() are available for the user unless <signal.h> is
  513. !        included in user's source).  Fix later.
  514. !     */
  515.       else
  516.           raise(SIGABRT);
  517. - #endif
  518.       _fclose_all_files();
  519.       _exit(127);
  520.   #else
  521. --- 17,33 ----
  522.   {
  523.   #ifdef __MINT__
  524.       if (__mint)
  525. +         {
  526.           (void) Pkill(Pgetpid(), SIGABRT);
  527. !         /* process still alive, maybe SIGABRT was blocked */
  528. !         (void) Psigsetmask(Psigblock(0) & ~(sigmask(SIGABRT)));
  529. !         /* process still alive, maybe SIGABRT was ignored */
  530. !         /* is this correct if user SIGABRT handler returns? */
  531. !         (void) Psignal(SIGABRT, (long) SIG_DFL);
  532. !         (void) Pkill(Pgetpid(), SIGABRT);
  533. !         }
  534.       else
  535.           raise(SIGABRT);
  536.       _fclose_all_files();
  537.       _exit(127);
  538.   #else
  539. ===================================================================
  540. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/abs.c,v
  541. retrieving revision 1.3
  542. diff -c -r1.3 abs.c
  543. *** 1.3    1994/02/02 19:01:56
  544. --- abs.c    1994/03/17 21:24:00
  545. ***************
  546. *** 4,17 ****
  547.   #ifdef abs
  548.   #undef abs
  549.   #endif
  550. - #ifdef labs
  551. - #undef labs
  552. - #endif
  553.   
  554.   int abs(x)
  555. ! int x;
  556. ! { return x < 0 ? -x : x; }
  557. ! long labs(x)
  558. ! long x;
  559. ! { return x < 0 ? -x : x; }
  560. --- 4,12 ----
  561.   #ifdef abs
  562.   #undef abs
  563.   #endif
  564.   
  565.   int abs(x)
  566. !   int x;
  567. ! {
  568. !   return x < 0 ? -x : x;
  569. ! }
  570. ===================================================================
  571. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/atol.c,v
  572. retrieving revision 1.4
  573. diff -c -r1.4 atol.c
  574. *** 1.4    1992/06/24 15:32:04
  575. --- atol.c    1994/03/17 21:24:01
  576. ***************
  577. *** 6,20 ****
  578.   
  579.   __EXTERN long strtol __PROTO((const char *, char **, int));
  580.   
  581. ! int atoi(str)
  582.   const char *str;
  583. - {
  584. -     assert ((str != NULL));
  585. -     return (int) strtol(str, (char **)0, 10);
  586. - }
  587. - long atol(str)
  588. - const char *str;
  589.   {
  590.       assert ((str != NULL));
  591.       return strtol(str, (char **)0, 10);
  592. --- 6,14 ----
  593.   
  594.   __EXTERN long strtol __PROTO((const char *, char **, int));
  595.   
  596. ! long
  597. ! atol(str)
  598.   const char *str;
  599.   {
  600.       assert ((str != NULL));
  601.       return strtol(str, (char **)0, 10);
  602. ===================================================================
  603. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/chmod.c,v
  604. retrieving revision 1.10
  605. diff -c -r1.10 chmod.c
  606. *** 1.10    1993/10/26 23:52:20
  607. --- chmod.c    1994/03/17 21:24:01
  608. ***************
  609. *** 1,5 ****
  610.   /* chmod -- change the permissions of a file */
  611. - /* chown -- change the owner and group of a file */
  612.   /* written by Eric R. Smith and placed in the public domain */
  613.   
  614.   #include <types.h>
  615. --- 1,4 ----
  616. ***************
  617. *** 13,19 ****
  618.   
  619.   extern int __mint;
  620.   
  621. ! int chmod(_path, mode)
  622.          const char *_path;
  623.          int   mode;
  624.   {
  625. --- 12,19 ----
  626.   
  627.   extern int __mint;
  628.   
  629. ! int
  630. ! chmod(_path, mode)
  631.          const char *_path;
  632.          int   mode;
  633.   {
  634. ***************
  635. *** 60,84 ****
  636.          return 0;
  637.   }
  638.   
  639. - /*
  640. -  * chown: this is faked if MiNT is not running
  641. -  */
  642. - int chown(_name, uid, gid)
  643. -        const char *_name;
  644. -        int uid, gid;
  645. - {
  646. -     int r;
  647. -     char name[PATH_MAX];
  648. -     if (__mint >= 9) {
  649. -         (void)_unx2dos(_name, name);
  650. -         r = (int)Fchown(name, uid, gid);
  651. -         if (r && (r != -EINVAL)) {
  652. -             errno = -r;
  653. -             return -1;
  654. -         }
  655. -         return 0;
  656. -     }
  657. -     return 0;
  658. - }
  659. --- 60,62 ----
  660. ===================================================================
  661. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/div.c,v
  662. retrieving revision 1.5
  663. diff -c -r1.5 div.c
  664. *** 1.5    1993/10/26 23:52:23
  665. --- div.c    1994/03/17 21:24:02
  666. ***************
  667. *** 1,5 ****
  668.   /*
  669. !  * div and ldiv
  670.    *    this one should be compat with -fpcc-struct-return
  671.    *
  672.    *    ++jrb    bammi@dsrgsun.ces.cwru.edu
  673. --- 1,5 ----
  674.   /*
  675. !  * div
  676.    *    this one should be compat with -fpcc-struct-return
  677.    *
  678.    *    ++jrb    bammi@dsrgsun.ces.cwru.edu
  679. ***************
  680. *** 11,17 ****
  681.   long __divsi3(long, long);    /* returns: quot in d0.l  remainder in d1.l */
  682.   
  683.   #ifdef __MSHORT__
  684. ! div_t div(int num, int denom)
  685.   {
  686.       div_t     result;
  687.   
  688. --- 11,18 ----
  689.   long __divsi3(long, long);    /* returns: quot in d0.l  remainder in d1.l */
  690.   
  691.   #ifdef __MSHORT__
  692. ! div_t
  693. ! div(int num, int denom)
  694.   {
  695.       div_t     result;
  696.   
  697. ***************
  698. *** 29,52 ****
  699.   #else /* !__MSHORT__ */
  700.   __asm__(".stabs \"_div\",5,0,0,_ldiv");
  701.   #endif
  702. - ldiv_t ldiv(long num, long denom)
  703. - {
  704. -     ldiv_t    result;
  705. -     __asm__ volatile("\
  706. -          movl    %3,sp@-
  707. -         movl    %2,sp@-
  708. -         jsr    ___divsi3
  709. -         addqw    #8,sp
  710. -         movl    d0,%0
  711. -         movl    d1,%1"
  712. -         : "=g"(result.quot), "=g"(result.rem)
  713. -         : "r"(num), "r"(denom)
  714. -         ); /* compiler dependency, dont tell gcc about d0,d1 clobb */
  715. -     return result;
  716. - }
  717.   #else /* !__GNUC__ */
  718.   
  719.   div_t
  720. --- 30,35 ----
  721. ***************
  722. *** 55,72 ****
  723.   {
  724.       div_t res;
  725.       
  726. -     res.quot = num / denom;
  727. -     res.rem = num % denom;
  728. -     
  729. -     return res;
  730. - }
  731. - ldiv_t
  732. - ldiv(num, denom)
  733. - long num, denom;
  734. - {
  735. -     ldiv_t res;
  736. -     
  737.       res.quot = num / denom;
  738.       res.rem = num % denom;
  739.       
  740. --- 38,43 ----
  741. ===================================================================
  742. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/fopen.c,v
  743. retrieving revision 1.22
  744. diff -c -r1.22 fopen.c
  745. *** 1.22    1994/02/02 19:02:03
  746. --- fopen.c    1994/03/17 21:24:02
  747. ***************
  748. *** 5,160 ****
  749.   #include <fcntl.h>
  750.   #include <unistd.h>
  751.   #include <errno.h>
  752.   
  753.   __EXTERN void _getbuf __PROTO((FILE *));
  754. - static FILE *_fopen __PROTO((const char *, const char *, FILE *));
  755.   
  756. ! extern int __mint;
  757. ! /* lowest character device handle # */
  758. ! #define    LAST_DEVICE    __SMALLEST_VALID_HANDLE
  759. ! extern int __default_mode__;
  760. ! static FILE *_fopen(filename, mode, fp)
  761. !     const char *filename;
  762. !     const char *mode;
  763. !     FILE *fp;
  764. ! /*
  765. !  *    INTERNAL FUNCTION.  Attempt to open <filename> in the given
  766. !  *    <mode> and attach it to the stream <fp>
  767. !  */
  768. !     {
  769. !     register int h, i, iomode = 0, f = __default_mode__;
  770. !     while(*mode)
  771. !         {
  772. !         switch(*mode++)
  773. !             {
  774. !             case 'r':
  775. !                 f |= _IOREAD;
  776. !                 break;
  777. !             case 'w':
  778. !                 f |= _IOWRT;
  779. !                 iomode |= (O_CREAT | O_TRUNC);
  780. !                 break;
  781. !             case 'a':
  782. !                 f |= _IOWRT;
  783. !                 iomode |= (O_CREAT | O_APPEND);
  784. !                 break;
  785. !             case '+':
  786. !                 f &= ~(_IOREAD | _IOWRT);
  787. !                 f |= _IORW;
  788. !                 break;
  789. !             case 'b':
  790. !                 f |= _IOBIN;
  791. !                 break;
  792. !             case 't':
  793. !                 f &= ~_IOBIN;
  794. !                 break;
  795. !             default:
  796. !                 return(NULL);
  797. !             }
  798. !         }
  799. !     if((i = (f & (_IORW | _IOREAD | _IOWRT))) == 0)
  800. !         return(NULL);
  801. !     else if(i == _IOREAD)
  802. !         iomode |= O_RDONLY;
  803. !     else if(i == _IOWRT)
  804. !         iomode |= O_WRONLY;
  805. !     else
  806. !         iomode |= O_RDWR;
  807. !     iomode |= O_NOCTTY;
  808. !     h = open(filename, iomode, 0666);
  809. !     if(h < __SMALLEST_VALID_HANDLE)
  810. !         {
  811. !         return(NULL);        /* file open/create error */
  812. !         }
  813. !     if(isatty(h))
  814. !         f |= __mint ? (_IODEV | _IONBF| _IOBIN) : (_IODEV | _IONBF);
  815. !     else
  816. !         f |= _IOFBF;
  817. !     fp->_file = h;            /* file handle */
  818. !     fp->_flag = f;            /* file status flags */
  819. !     if (iomode & O_APPEND)
  820. !         (void) fseek(fp, 0L, SEEK_END);
  821. !     return(fp);
  822. !     }
  823. ! FILE *fopen(filename, mode)
  824. !     const char *filename, *mode;
  825. !     {
  826. !     register int i;
  827. !     register FILE *fp = NULL;
  828. !     for(i=0; (!fp && (i < _NFILE)); ++i)
  829. !         if(!(_iob[i]._flag & (_IORW | _IOREAD | _IOWRT))) 
  830. !             fp = &_iob[i]; /* empty slot */
  831. !     if(fp != NULL)
  832. !     {
  833. !         if(_fopen(filename, mode, fp) == NULL)
  834. !             return NULL;
  835. !         _getbuf(fp);
  836. !         return fp;
  837. !     }
  838. !     else
  839. !       {
  840. !         errno = EMFILE;
  841. !         return NULL;
  842. !       }
  843. !     }
  844. ! /*
  845. !  * re-coded,  foobared code deleted
  846. !  *
  847. !  *    ++jrb
  848. !  */
  849. ! FILE *freopen(filename, mode, fp)
  850.       const char *filename, *mode;
  851. -     FILE *fp;
  852.   {
  853. !     unsigned int f;
  854. !     
  855. !     if(fp == NULL) return NULL;
  856. !     
  857. !     f = fp->_flag;
  858. !     if((f & (_IORW | _IOREAD | _IOWRT)) != 0)
  859. !     { /* file not closed, close it */
  860. ! #if 0
  861. !         if(fflush(fp) != 0) return NULL;            /* flush err */
  862. !         if(close(fp->_file) != 0) return NULL;        /* close err */
  863. ! #else
  864. !     fflush(fp);                /* ANSI says ignore errors */
  865. !     if (__mint || !(f & _IODEV))        /* leave tty's alone */
  866. !       close(fp->_file);
  867. ! #endif
  868. !     }
  869. !     /* save buffer discipline and setbuf settings, and _IOWRT just for
  870. !        determinining line buffering after the next _fopen */
  871. !     f &= (_IOFBF | _IOLBF | _IONBF | _IOMYBUF | _IOWRT);
  872. !     /* open the new file according to mode */
  873. !     if((fp = _fopen(filename, mode, fp)) == NULL)
  874. !     return NULL;
  875. !     if(fp->_flag & _IODEV)
  876. !     { /* we are re-opening to a tty */
  877. !     if((f & _IOFBF) && (f & _IOWRT) && (f & _IOMYBUF))
  878. !     {   /* was a FBF & WRT & !setvbuff'ed  */
  879. !         /* reset to line buffering */
  880. !         f &= ~_IOFBF;
  881. !         f |=  _IOLBF;
  882. !     }
  883. !     }
  884. !     f &= ~_IOWRT; /* get rid of saved _IOWRT flag */
  885. !     
  886. !     /* put buffering and discipline flags in new fp->_flag */
  887. !     fp->_flag &= ~(_IONBF | _IOLBF | _IOFBF | _IOMYBUF);
  888. !     fp->_flag |= f;
  889. !     
  890. !     if (fp->_base == NULL)
  891. !       /* get new buffer if file was closed */
  892. !       _getbuf (fp);
  893.   
  894.       return fp;
  895. !     }
  896. --- 5,34 ----
  897.   #include <fcntl.h>
  898.   #include <unistd.h>
  899.   #include <errno.h>
  900. + #include "lib.h"
  901.   
  902.   __EXTERN void _getbuf __PROTO((FILE *));
  903.   
  904. ! FILE *
  905. ! fopen(filename, mode)
  906.       const char *filename, *mode;
  907.   {
  908. !   register int i;
  909. !   register FILE *fp = NULL;
  910.   
  911. +   for (i=0; (!fp && (i < _NFILE)); ++i)
  912. +     if (!(_iob[i]._flag & (_IORW | _IOREAD | _IOWRT))) 
  913. +       fp = &_iob[i]; /* empty slot */
  914. +   if (fp != NULL)
  915. +   {
  916. +     if (_fopen_i(filename, mode, fp) == NULL)
  917. +       return NULL;
  918. +     _getbuf(fp);
  919.       return fp;
  920. !   }
  921. !   else
  922. !   {
  923. !     errno = EMFILE;
  924. !     return NULL;
  925. !   }
  926. ! }
  927. ===================================================================
  928. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/fputs.c,v
  929. retrieving revision 1.5
  930. diff -c -r1.5 fputs.c
  931. *** 1.5    1993/10/26 23:52:34
  932. --- fputs.c    1994/03/17 21:24:03
  933. ***************
  934. *** 4,33 ****
  935.   #include <stddef.h>
  936.   #include <assert.h>
  937.   
  938. ! int fputs(data, fp)
  939. !     register const char *data;
  940. !     register FILE *fp;
  941. !     {
  942. !     register int n = 0;
  943.       
  944. !     assert((data != NULL));
  945. !     while(*data)
  946. !         {
  947. !         if(fputc(*data++, fp) == EOF)
  948. !             return(EOF);
  949. !         ++n;
  950. !         }
  951. !     return(n);
  952. !     }
  953. ! int puts(data)
  954. !     const char *data;
  955. !     {
  956. !     register int n;
  957. !     assert((data != NULL));
  958. !     if(((n = fputs(data, stdout)) == EOF)
  959. !     || (fputc('\n', stdout) == EOF))
  960. !         return(EOF);
  961. !     return(++n);
  962. !     }
  963. --- 4,22 ----
  964.   #include <stddef.h>
  965.   #include <assert.h>
  966.   
  967. ! int
  968. ! fputs(data, fp)
  969. !   register const char *data;
  970. !   register FILE *fp;
  971. ! {
  972. !   register int n = 0;
  973.       
  974. !   assert((data != NULL));
  975. !   while (*data)
  976. !   {
  977. !     if (fputc(*data++, fp) == EOF)
  978. !       return (EOF);
  979. !     ++n;
  980. !   }
  981. !   return (n);
  982. ! }
  983. ===================================================================
  984. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/fseek.c,v
  985. retrieving revision 1.7
  986. diff -c -r1.7 fseek.c
  987. *** 1.7    1992/09/14 14:56:40
  988. --- fseek.c    1994/03/17 21:24:03
  989. ***************
  990. *** 5,52 ****
  991.   #include <stdio.h>
  992.   #include <unistd.h>
  993.   
  994. ! long ftell(fp)
  995. ! FILE *fp;
  996.   {
  997. -     long rv, count = fp->_cnt, adjust = 0;
  998. -     unsigned int f = fp->_flag;
  999. -     if( ((f & _IOREAD) && (!(f & _IOBIN))) ||
  1000. -        (count == 0)               ||
  1001. -        (f & _IONBF) )
  1002. -     {
  1003. -     fflush(fp);    
  1004. -     rv = lseek(fp->_file, 0L, SEEK_CUR);
  1005. -     }
  1006. -     else
  1007. -     {
  1008. -     if(f & _IOREAD)
  1009. -         adjust = -count;
  1010. -     else if(f & (_IOWRT | _IORW))
  1011. -     {
  1012. -         if(f & _IOWRT)
  1013. -         adjust = count;
  1014. -     }
  1015. -     else return -1L;
  1016. -     rv = lseek(fp->_file, 0L, SEEK_CUR);
  1017. -     }
  1018. -     return (rv < 0) ? -1L : rv + adjust;
  1019. - }
  1020. - void rewind(fp)
  1021. - register FILE *fp;
  1022. - {
  1023. -     fflush(fp);
  1024. -     (void) lseek(fp->_file, 0L, SEEK_SET);
  1025. -     fp->_flag &= ~(_IOEOF|_IOERR);
  1026. - }
  1027. - int fseek(fp, offset, origin)
  1028. - FILE *fp;
  1029. - long offset;
  1030. - int origin;
  1031. - {
  1032.       long pos, count;
  1033.       unsigned int f;
  1034.       int rv;
  1035. --- 5,16 ----
  1036.   #include <stdio.h>
  1037.   #include <unistd.h>
  1038.   
  1039. ! int
  1040. ! fseek(fp, offset, origin)
  1041. !   FILE *fp;
  1042. !   long offset;
  1043. !   int origin;
  1044.   {
  1045.       long pos, count;
  1046.       unsigned int f;
  1047.       int rv;
  1048. ===================================================================
  1049. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/fsetpos.c,v
  1050. retrieving revision 1.2
  1051. diff -c -r1.2 fsetpos.c
  1052. *** 1.2    1989/03/22 17:40:53
  1053. --- fsetpos.c    1994/03/17 21:24:04
  1054. ***************
  1055. *** 2,38 ****
  1056.   
  1057.   #include <stdio.h>
  1058.   
  1059. ! #define ERROR -1
  1060.   
  1061. ! int fgetpos(fp, pos)
  1062. !     FILE *fp;
  1063. !     fpos_t *pos;
  1064. !     {
  1065. !     register long rv;
  1066. !     rv = ftell(fp);
  1067. !     if((rv >= 0) && pos)
  1068. !         {
  1069. !         *pos = rv;
  1070. !         return(0);
  1071. !         }
  1072. !     return(ERROR);
  1073. !     }
  1074. ! int fsetpos(fp, pos)
  1075. !     FILE *fp;
  1076. !     fpos_t *pos;
  1077. !     {
  1078. !     register long rv;
  1079. !     if(pos)
  1080. !         {
  1081. !         rv = fseek(fp, *pos, SEEK_SET);
  1082. !         if(rv >= 0)
  1083. !             {
  1084. !             fp->_flag &= ~(_IOEOF|_IOERR);
  1085. !             return(0);
  1086. !             }
  1087. !         }
  1088. !     return(ERROR);
  1089. !     }
  1090. --- 2,22 ----
  1091.   
  1092.   #include <stdio.h>
  1093.   
  1094. ! int
  1095. ! fsetpos(fp, pos)
  1096. !   FILE *fp;
  1097. !   fpos_t *pos;
  1098. ! {
  1099. !   register long rv;
  1100.   
  1101. !   if (pos)
  1102. !   {
  1103. !     rv = fseek(fp, *pos, SEEK_SET);
  1104. !     if (rv >= 0)
  1105. !     {
  1106. !       fp->_flag &= ~(_IOEOF|_IOERR);
  1107. !       return (0);
  1108. !     }
  1109. !   }
  1110. !   return (-1);
  1111. ! }
  1112. ===================================================================
  1113. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/getpid.c,v
  1114. retrieving revision 1.7
  1115. diff -c -r1.7 getpid.c
  1116. *** 1.7    1993/03/01 17:34:31
  1117. --- getpid.c    1994/03/17 21:24:05
  1118. ***************
  1119. *** 5,9 ****
  1120.   
  1121.   extern int __mint;
  1122.   
  1123. ! int getpid() { return __mint ? Pgetpid() : (int) ( ((long)_base) >> 8 ); }
  1124. ! int getppid() { return __mint ? Pgetppid() : (int) (((long)(_base->p_parent)) >> 8); }
  1125. --- 5,12 ----
  1126.   
  1127.   extern int __mint;
  1128.   
  1129. ! int
  1130. ! getpid()
  1131. ! {
  1132. !   return __mint ? Pgetpid() : (int) ( ((long)_base) >> 8 );
  1133. ! }
  1134. ===================================================================
  1135. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/getuid.c,v
  1136. retrieving revision 1.11
  1137. diff -c -r1.11 getuid.c
  1138. *** 1.11    1993/06/04 19:55:49
  1139. --- getuid.c    1994/03/17 21:24:06
  1140. ***************
  1141. *** 1,71 ****
  1142. ! #ifdef __TURBOC__
  1143. ! #include <sys\types.h>
  1144. ! #else
  1145. ! #include <sys/types.h>
  1146. ! #endif
  1147.   #include <unistd.h>
  1148.   #include <osbind.h>
  1149.   #include <mintbind.h>
  1150. - #include <errno.h>
  1151.   
  1152.   extern int __mint;
  1153.   
  1154. ! static int __uid = 0, __gid = 0;
  1155. ! uid_t getuid() { return __mint ? Pgetuid() : __uid; }
  1156. ! gid_t getgid() { return __mint ? Pgetgid() : __gid; }
  1157. ! uid_t geteuid()
  1158. ! { return __mint >= 95 ? Pgeteuid() : getuid(); }
  1159. ! gid_t getegid()
  1160. ! { return __mint >= 95 ? Pgetegid() : getgid(); }
  1161. ! int setuid(x)
  1162. !     int x;
  1163. ! {
  1164. !     long r;
  1165. !     if (__mint) {
  1166. !         r = Psetuid(x);
  1167. !         if (r < 0) {
  1168. !             errno = (int) -r;
  1169. !             return -1;
  1170. !         }
  1171. !         return 0;
  1172. !     }
  1173. !     __uid = x;
  1174. !     return 0;
  1175. ! }
  1176. ! int setgid(x)
  1177. !     int x;
  1178.   {
  1179. !     long r;
  1180. !     if (__mint) {
  1181. !         r = Psetgid(x);
  1182. !         if (r < 0) {
  1183. !             errno = (int) -r;
  1184. !             return -1;
  1185. !         }
  1186. !         return 0;
  1187. !     }
  1188. !     __gid = x;
  1189. !     return 0;
  1190. ! }
  1191. ! int setreuid(ruid,euid)
  1192. !     int ruid, euid;
  1193. ! {
  1194. !     return setuid(euid);
  1195.   }
  1196. - int setregid(rgid,egid)
  1197. -     int rgid, egid;
  1198. - {
  1199. -     return setgid(egid);
  1200. - }
  1201. - int seteuid(x) int x; { return setuid(x); }
  1202. - int setegid(x) int x; { return setgid(x); }
  1203. --- 1,13 ----
  1204. ! #include <types.h>
  1205.   #include <unistd.h>
  1206.   #include <osbind.h>
  1207.   #include <mintbind.h>
  1208.   
  1209.   extern int __mint;
  1210. + extern uid_t __uid;
  1211.   
  1212. ! uid_t
  1213. ! getuid()
  1214.   {
  1215. !   return __mint ? Pgetuid() : __uid;
  1216.   }
  1217. ===================================================================
  1218. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/lib.h,v
  1219. retrieving revision 1.12
  1220. diff -c -r1.12 lib.h
  1221. *** 1.12    1994/02/02 19:02:08
  1222. --- lib.h    1994/03/17 21:24:07
  1223. ***************
  1224. *** 48,53 ****
  1225. --- 48,54 ----
  1226.   #ifdef __MINT__
  1227.   __EXTERN int    _scanf __PROTO((FILE *, int (*)(FILE *),
  1228.               int (*)(int, FILE *), const char *, __VA_LIST__));
  1229. + __EXTERN int    _enoent __PROTO((char *));
  1230.   #endif
  1231.   
  1232.   __EXTERN long        get_sysvar __PROTO((void *var));
  1233. ***************
  1234. *** 115,118 ****
  1235. --- 116,131 ----
  1236.   #define FH_ISATTY    1
  1237.   #define FH_ISAFILE    2
  1238.   
  1239. + /*
  1240. +  * macro for converting a long in DOS format to one in Unix format. "x"
  1241. +  * _must_ be an lvalue!
  1242. +  */
  1243. + #define __UNIXTIME(x) (x = _unixtime( ((short *)&x)[0], ((short *)&x)[1] ))
  1244. + __EXTERN int _do_lock __PROTO((int fd, int cmd, long size, int whence));
  1245. + #ifdef _STDIO_H
  1246. + __EXTERN FILE *_fopen_i __PROTO((const char *, const char *, FILE *));
  1247. + #endif
  1248.   #endif /* _LIB_H */
  1249. ===================================================================
  1250. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/libgcc2.c,v
  1251. retrieving revision 1.2
  1252. diff -c -r1.2 libgcc2.c
  1253. *** 1.2    1994/02/02 19:02:10
  1254. --- libgcc2.c    1994/02/23 22:26:26
  1255. ***************
  1256. *** 60,66 ****
  1257.   #include <stddef.h>
  1258.   #endif
  1259.   
  1260. ! #if 0
  1261.   /* Define for XFmode extended real floating point support.  */
  1262.   #define LONG_DOUBLE_TYPE_SIZE 96
  1263.   #else
  1264. --- 60,66 ----
  1265.   #include <stddef.h>
  1266.   #endif
  1267.   
  1268. ! #if defined(XFLOAT_ENABLE) && (__GNUC__ > 2 || __GNUC_MINOR__ >= 4)
  1269.   /* Define for XFmode extended real floating point support.  */
  1270.   #define LONG_DOUBLE_TYPE_SIZE 96
  1271.   #else
  1272. ===================================================================
  1273. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/longlong.h,v
  1274. retrieving revision 1.2
  1275. diff -c -r1.2 longlong.h
  1276. *** 1.2    1994/02/02 19:02:12
  1277. --- longlong.h    1994/02/23 22:25:24
  1278. ***************
  1279. *** 411,444 ****
  1280.          : "=d" ((USItype)(count))                    \
  1281.          : "od" ((USItype)(x)), "n" (0))
  1282.   #else /* not mc68020 */
  1283. - /* %/ inserts REGISTER_PREFIX.  */
  1284.   #define umul_ppmm(xh, xl, a, b) \
  1285.     __asm__ ("| Inlined umul_ppmm
  1286. !     movel    %2,%/d0
  1287. !     movel    %3,%/d1
  1288. !     movel    %/d0,%/d2
  1289. !     swap    %/d0
  1290. !     movel    %/d1,%/d3
  1291. !     swap    %/d1
  1292. !     movew    %/d2,%/d4
  1293. !     mulu    %/d3,%/d4
  1294. !     mulu    %/d1,%/d2
  1295. !     mulu    %/d0,%/d3
  1296. !     mulu    %/d0,%/d1
  1297. !     movel    %/d4,%/d0
  1298. !     eorw    %/d0,%/d0
  1299. !     swap    %/d0
  1300. !     addl    %/d0,%/d2
  1301. !     addl    %/d3,%/d2
  1302.       jcc    1f
  1303. !     addl    #65536,%/d1
  1304. ! 1:    swap    %/d2
  1305. !     moveq    #0,%/d0
  1306. !     movew    %/d2,%/d0
  1307. !     movew    %/d4,%/d2
  1308. !     movel    %/d2,%1
  1309. !     addl    %/d1,%/d0
  1310. !     movel    %/d0,%0"                        \
  1311.          : "=g" ((USItype)(xh)),                    \
  1312.            "=g" ((USItype)(xl))                    \
  1313.          : "g" ((USItype)(a)),                    \
  1314. --- 411,443 ----
  1315.          : "=d" ((USItype)(count))                    \
  1316.          : "od" ((USItype)(x)), "n" (0))
  1317.   #else /* not mc68020 */
  1318.   #define umul_ppmm(xh, xl, a, b) \
  1319.     __asm__ ("| Inlined umul_ppmm
  1320. !     movel    %2,d0
  1321. !     movel    %3,d1
  1322. !     movel    d0,d2
  1323. !     swap    d0
  1324. !     movel    d1,d3
  1325. !     swap    d1
  1326. !     movew    d2,d4
  1327. !     mulu    d3,d4
  1328. !     mulu    d1,d2
  1329. !     mulu    d0,d3
  1330. !     mulu    d0,d1
  1331. !     movel    d4,d0
  1332. !     eorw    d0,d0
  1333. !     swap    d0
  1334. !     addl    d0,d2
  1335. !     addl    d3,d2
  1336.       jcc    1f
  1337. !     addl    #65536,d1
  1338. ! 1:    swap    d2
  1339. !     moveq    #0,d0
  1340. !     movew    d2,d0
  1341. !     movew    d4,d2
  1342. !     movel    d2,%1
  1343. !     addl    d1,d0
  1344. !     movel    d0,%0"                        \
  1345.          : "=g" ((USItype)(xh)),                    \
  1346.            "=g" ((USItype)(xl))                    \
  1347.          : "g" ((USItype)(a)),                    \
  1348. ===================================================================
  1349. RCS file: /net/acae127/home/bammi/etc/src/master/atari/co/regexp.c,v
  1350. retrieving revision 1.8
  1351. diff -c -r1.8 regexp.c
  1352. *** 1.8    1993/07/10 16:36:59
  1353. --- regexp.c    1994/03/17 21:24:08
  1354. ***************
  1355. *** 591,596 ****
  1356. --- 591,597 ----
  1357.   
  1358.     place = opnd;            /* Op node, where operand used to be. */
  1359.     *place++ = op;
  1360. +   *place++ = '\0';
  1361.     *place = '\0';
  1362.   }
  1363.   
  1364.